package cn.codeinn.common.util;

import java.util.Map;

import cn.vkits.core.lang.Dict;

public class RS extends Dict {

	private static final long serialVersionUID = -6840263980807202726L;

	public RS() {
		put("code", 0);
	}

	public static RS ok(String msg) {
		RS r = new RS();
		r.put("msg", msg);
		return r;
	}

	public static RS ok(Map<String, Object> map) {
		RS r = new RS();
		r.putAll(map);
		return r;
	}

	public static RS ok() {
		return new RS();
	}

	@Override
	public RS set(String attr, Object value) {
		super.set(attr, value);
		return this;
	}
}
